package com.question.service;

import java.util.List;


import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.TablePage;

import com.question.entity.Single;
import com.question.entity.dto.SingleDTO;

public interface ISingleService {
	public List<SingleDTO> findAll();
	public void saveOrUpdate(Single single);
	public boolean delete(Long id);
	public TablePage<SingleDTO> findPage(Specification<Single> spec,Pageable pageable);
	public List<Single> findAll2();
	public TablePage<Single> findRealPage(Specification<Single> spec,Pageable pageable);
	public Single findOne(Long id);
	
	public void testSave();
	public boolean isNumExist(Single single);
	public boolean isUsing(Long id);
}
